package com.dsiab.manageService.mapper;

import com.dsiab.manageService.entity.WebStatsDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface WebStatsDao {

  public void insertWebStats(WebStatsDto webStatsDto);

  public void insertEvent(WebStatsDto webStatsDto);

  public int getCurrentViewsByDate();

  public int getCurrentViewsByIp();

  public int getViewsByDate();

  public int getViewsByIp();

  public int getCountViews();

  public int getAllPagesViews();

  public int getAllCount();

  public int getAllPagesCount();

  public int getTotalWordsNumByCate();

  public List<Map> getDeviceType(@Param("currDate") String currDate,@Param("endDate") String endDate);

  public List<Map> getDeviceRatio(@Param("currDate") String currDate,@Param("endDate") String endDate);

  public List<Map> getBrowserType(@Param("currDate") String currDate,@Param("endDate") String endDate);

  public void saveEveryDayViews(Map map);

  public void delExistViews();

  public List<Map> getEveryDayViews();

  public Map getSomeDayViews(String date);

  public List<Map> botEngine();

  public int getReferrerNowDay();

  public int getPostView();

  public List getMapData(@Param("currDate") String currDate,@Param("endDate") String endDate);

}